package com.dhecp.project.common.service;

import cn.hutool.system.UserInfo;
import com.dhecp.common.core.domain.AjaxResult;
import com.dhecp.project.common.domain.UpdateLog;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

public interface UpdateLogService {

    /**
     *@Description: 查询
     *@Param: [params]
     *@return: java.util.List<com.dhecp.project.storage.domain.AssemblyMaintain>
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    List<UpdateLog> queryList(Map<String, Object> params) throws Exception;

    /**
     *@Description: 查询指定单记录
     *@Param: nid 必要参数：当前 单据编码
     *@return: com.dhecp.project.storage.domain.AssemblyMaintain
     *@Author: hlf
     *@date: 2022-05-09 9:40
     */
    UpdateLog findByGuid(Map<String, Object> params) throws Exception;

    /**
     *@Description: 保存日志
     *@Param: [moduleTable] 字典标识
     *@Param: [targetGuid] 数据标识
     *@Param: [oldBean] 旧对象
     *@Param: [newBean] 新对象
     *@Param: [operatorName] 操作名称
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-09-13 14:39
     */
    AjaxResult addUpdateLog(String moduleTable,String targetGuid,Object oldBean, Object newBean, String operatorName);

    /**
     *@Description: 保存日志
     *@Param: [moduleTable] 字典标识
     *@Param: [targetGuid] 数据标识
     *@Param: [operatorName] 操作名称
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-09-13 14:39
     */
    AjaxResult addInsertLog(String moduleTable,String targetGuid,String operatorName);

}
